package com.kfm.autoconfig;

import com.kfm.autoconfig.bean.TestBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MySpringbootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(MySpringbootApplication.class, args);

        TestBean bean = applicationContext.getBean(TestBean.class);
        System.out.println(bean);
    }
}
